﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Duck : Eat, ISwim
    {
        public void Swim()
        {
            Console.WriteLine("我会鸭子游泳"); ;
        }
        public override void eat()
        {
            base.eat();
            Console.WriteLine("我会吃鸭粮");
        }
    }
}
